package com.example.text.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.example.text.entity.AdminRole;
import com.example.text.entity.AdminUserRole;

import java.util.List;

/**
 * 用户与规则关联表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
public interface AdminUserRoleService extends IService<AdminUserRole> {

    List<AdminUserRole> listAllByUid(String username);


    void saveRoleChanges(int uid, List<AdminRole> roles);

    void addRoleByName(String name);
}
